package com.ccnf.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author developer
 * @since 2018-09-08
 */
@Data
@TableName("invitation_account")
public class InvitationAccount extends Model<InvitationAccount> {

    private static final long serialVersionUID = 1L;

    @TableId("account_id")
    private Long accountId;

    @TableField("invitation_id")
    private Long invitationId;
    /**
     * 引用的邀请函ID
     */
    @TableField("reference_id")
    private Long referenceId;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 用户账户金额
     */
    @TableField("account_money")
    private BigDecimal accountMoney;
    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

    @Override
    protected Serializable pkVal() {
        return accountId;
    }
}